package org.jb.coinche.server;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

import com.google.inject.AbstractModule;

/**
 * 
 * Exposition d'un ScheduledExecutorService classique.
 * 
 * Ne fonctionne pas dans GAE.
 * 
 * @author jeremie
 *
 */
public class ThreadExecutorModule extends AbstractModule {

	@Override
	protected void configure() {
		
		bind(ScheduledExecutorService.class).toInstance( Executors.newScheduledThreadPool(2) );
		
	}

}
